var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push( {
	name: 'PortalTibia',
	version: '0.1',
	prepareImgLinks: function(callback) {
		var res = [];
		$("#left a[href*=http://portaltibia.com.br/?p=] img").each(function() {
			var link = $(this).parents('a:eq(0)');
			if (link) {
				var src = this.src.match(/http:\/\/portaltibia\.com\.br\/wp-content\/themes\/community\/timthumb\.php\?src=(.*?)&/i);
				if(src)
				{
					$(link).data('hoverZoomSrc', [src[1]]);
					$(link).data('hoverZoomCaption', this.alt.replace(/ *thumbnail$/i, ''));
					res.push(link);
				}
			}
		});
		$("a[href*=http://portaltibia.com.br/?attachment_id=] img").each(function() {
			var link = $(this).parents('a:eq(0)');
			if (link) {
					$(link).data('hoverZoomSrc', [this.src.replace(/-150x150/ig, '')]);
					$(link).data('hoverZoomCaption', this.alt);
					res.push(link);
				}
		});
		callback($(res));
	}
});